const _picker_data = {
    inventory: "230",
    is_default_pic: true,
    default_pic: "../../img/public/picker_pic2.png",
    price_section: ["24.50", "28.00"],
    attr: [
        {
            id: 0,
            name: "颜色",
            gather: [
                {
                    pic: "../../img/public/picker_pic1.png",
                    name: "JK低帮黑色",
                    price: "25",
                    status: true,
                    inventory: 120,
                    deficiency: [{ id: 1, idx: 2 }]
                }, {
                    pic: "../../img/public/picker_pic1.png",
                    name: "JK低帮白色",
                    price: "24.5",
                    status: true,
                    inventory: 240,
                    deficiency: []
                }, {
                    pic: "../../img/public/picker_pic1.png",
                    name: "JK低帮蓝色",
                    price: "26",
                    status: true,
                    inventory: 320,
                    deficiency: []
                }, {
                    pic: "../../img/public/picker_pic1.png",
                    name: "JK低帮红色",
                    price: "28",
                    status: true,
                    inventory: 320,
                    deficiency: [{ id: 1, idx: 0 }]
                }
            ]
        }, {
            id: 1,
            name: "尺码",
            gather: [
                {
                    name: "34",
                    status: true,
                    deficiency: [{ id: 0, idx: 1 }, { id: 0, idx: 2 }]
                }, {
                    name: "35",
                    status: true,
                    deficiency: []
                }, {
                    name: "36",
                    status: true,
                    deficiency: [{ id: 0, idx: 2 }]
                }
            ]
        },
    ]
};
// pages/panic_details/panic_details.js
Page({
  data: {
    show:false,
    swiper:[
        {
            logo:'https://img.alicdn.com/simba/img/TB13yVAegMPMeJjy1XbSuwwxVXa.jpg'
        },
        {
            logo: 'https://img.alicdn.com/simba/img/TB1cl8USpXXXXX_apXXSutbFXXX.jpg'
        }
    ],
    evaluation_list: [
        {
            name: "E*****n",
            avatar: "../../img/public/avatar.png",
            txt: "衣服质量很好50块钱买的非常值不管你去哪个店五十块钱绝对买不到的 很喜欢 颜色跟图片一样的",
            attr: ["9月10日", "颜色:枚红色", "尺码:S", "身高:158cm", "体重:51kg", "是否合身:偏大"],
            imgUrls: [
                "../../img/public/cart_goods_pic.png",
                "../../img/public/cart_goods_pic.png",
                "../../img/public/cart_goods_pic.png",
                "../../img/public/cart_goods_pic.png",
                "../../img/public/cart_goods_pic.png",
            ],
            reply: "亲,这款是宽松版型哦"
        },
        {
            name: "L*****S",
            avatar: "../../img/public/avatar.png",
            txt: "衣服质量很好50块钱买的非常值不管你去哪个店五十块钱绝对买不到的 很喜欢 颜色跟图片一样的",
            attr: ["9月10日", "颜色:枚红色", "尺码:S", "身高:158cm", "体重:51kg", "是否合身:偏大"],
            imgUrls: [],
            reply: ""
        },
        {
            name: "K*****L",
            avatar: "../../img/public/avatar.png",
            txt: "衣服质量很好50块钱买的非常值不管你去哪个店五十块钱绝对买不到的 很喜欢 颜色跟图片一样的",
            attr: ["9月10日", "颜色:枚红色", "尺码:S", "身高:158cm", "体重:51kg", "是否合身:偏大"]}
    ],
  },
    test:function(e){
        const tip = e.target.dataset.tip;
        let status;
        tip == "t" ? status = false : tip == "f"?status = true:null;
        this.setData({ show: status})
    },

    msk: function () {
        this.data.mask ?
            this.setData({
                mask: false,
            }) : this.setData({
                mask: true,
            })
    },
  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
  
  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {
  
  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {
  
  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function () {
  
  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function () {
  
  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function () {
  
  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {
  
  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {
  
  }
})